
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '人员管理',
    enableValidate: true
})

@Injectable()
export class EmployeeMsG32pViewmodelForm extends Form {
    @NgFormControl({
        id: 'code_b68e32f3_6rk6',
        name: "{{code_b68e32f3_6rk6}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    code: FormControl;

    @NgFormControl({
        id: 'name_e801c1ec_3kvx',
        name: "{{name_e801c1ec_3kvx}}",
        binding: 'name',
        updateOn: 'blur',
        defaultI18nValue: '姓名',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    name: FormControl;

    @NgFormControl({
        id: 'remark_39ce333b_gn3u',
        name: "{{remark_39ce333b_gn3u}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

    @NgFormControl({
        id: 'state_e1df28e6_z1h0',
        name: "{{state_e1df28e6_z1h0}}",
        binding: 'state',
        updateOn: 'blur',
        defaultI18nValue: '状态',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    state: FormControl;

    @NgFormControl({
        id: 'organization_d7c826e7_m7x7',
        name: "{{organization_d7c826e7_m7x7}}",
        binding: 'organization',
        updateOn: 'blur',
        defaultI18nValue: '组织',
    })
    organization: FormControl;

    @NgFormControl({
        id: 'gender_5f95fc88_4gq0',
        name: "{{gender_5f95fc88_4gq0}}",
        binding: 'gender',
        updateOn: 'blur',
        defaultI18nValue: '性别',
    })
    gender: FormControl;

    @NgFormControl({
        id: 'countryOrArea_74e58ef6_9ve3',
        name: "{{countryOrArea_74e58ef6_9ve3}}",
        binding: 'countryOrArea',
        updateOn: 'blur',
        defaultI18nValue: '所属国家或地区',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    countryOrArea: FormControl;

    @NgFormControl({
        id: 'location_25181afb_55ae',
        name: "{{location_25181afb_55ae}}",
        binding: 'location',
        updateOn: 'blur',
        defaultI18nValue: '常驻地',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    location: FormControl;

    @NgFormControl({
        id: 'idNumber_5858174d_8uv1',
        name: "{{idNumber_5858174d_8uv1}}",
        binding: 'idNumber',
        updateOn: 'blur',
        defaultI18nValue: '身份证号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    idNumber: FormControl;

    @NgFormControl({
        id: 'phoneNumber_45341bbd_bf59',
        name: "{{phoneNumber_45341bbd_bf59}}",
        binding: 'phoneNumber',
        updateOn: 'blur',
        defaultI18nValue: '手机号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    phoneNumber: FormControl;

    @NgFormControl({
        id: 'mailbox_87e6a742_57nq',
        name: "{{mailbox_87e6a742_57nq}}",
        binding: 'mailbox',
        updateOn: 'blur',
        defaultI18nValue: '邮箱',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    mailbox: FormControl;

    @NgFormControl({
        id: 'zgxl_06b176b0_2srd',
        name: "{{zgxl_06b176b0_2srd}}",
        binding: 'zgxl',
        updateOn: 'blur',
        defaultI18nValue: '最高学历',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zgxl: FormControl;

}